<?php
session_start(); 
/*................................................................ 
 .  [E路联盟系统]                                          .
 .  版本: 2006A1.0                                                  . 
 .  原作: isrn (isrn@qq.com)                             .
 .  支持: http://www.16lm.com        .
................................................................*/
error_reporting(7);
require_once '../../includes/global.php';

$wcfg=Dga('wcfg',"web like '".$sitename."' and lg like '".$_SESSION[LG]."'");
$wcfg=json_decode($wcfg[wcfg],true);

$webconfig[lgconfig]=$wcfg['lang'];
$webconfig[num]=$wcfg['num'];

//print_r($_GET[lg]);
//Jc($webconfig);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Prosperous JIMU</title>
<script type="text/javascript" src="/includes/class/xajax/xajax_js/xajax.js"></script>
<script type="text/javascript" src="/jimu/xajaxgetdata.js"></script>
 <script language="javascript" type="text/javascript" src="../../jimu/My97/WdatePicker.js"></script>
<style type="text/css">

* {
	margin: 0; padding:0;
}
body {
	margin-top: 10px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom:10px;
	text-align: center;
	height: auto;
	width: 95%;
	background-color: #666666;
	font-size: 12px;
	color: #000000;
}
#container {
	text-align: left;
	width: auto;
	height: auto;
	background-color: #FFFFFF;
	padding:20px;
	

}

#container #title {
	height: 28px;
}
#container #title li {
	float: left;
	list-style-type: none;
	height: 28px;
	line-height: 28px;
	text-align: center;
	margin-right: 1px;

}
#container #title ul {
	background-color: #FFFFFF;
	height: 28px;
}
#container #title a {
	text-decoration: none;
	color: #000000;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -29px;
}
#container #title a span{
	display: block;
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -29px;
	padding: 0 15px 0 15px;
}
#container #title #tag1 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -87px;
}
#container #title #tag1 a:hover span{
	display: block;
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -87px;
	padding: 0 15px 0 15px;
}
#container #title #tag2 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left 0px;
}
#container #title #tag2 a:hover span{
	display: block;
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right 0px;
	padding: 0 15px 0 15px;	
}
#container #title #tag3 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -58px;
}
#container #title #tag3 a:hover span{
	display: block;
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -58px;
	padding: 0 15px 0 15px;	
}
#container #title #tag4 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -145px;
}
#container #title #tag4 a:hover span{
	display: block;
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -145px;
	padding: 0 15px 0 15px;
}
#container #title #tag5 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -174px;
}
#container #title #tag5 a:hover span{
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -174px;
	padding: 0 15px 0 15px;
}
#container #title #tag6 a:hover span{
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -203px;
	padding: 0 15px 0 15px;
}#container #title #tag6 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -203px;
}
#container #title #tag7 a:hover span{
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -232px;
	padding: 0 15px 0 15px;
}#container #title #tag7 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -232px;
}
#container #title #tag8 a:hover span{
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -261px;
	padding: 0 15px 0 15px;
}#container #title #tag8 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -261px;
}
#container #title #tag9 a:hover span{
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -116px;
	padding: 0 15px 0 15px;
}#container #title #tag9 a:hover {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -116px;
}
#container #title .selectli1 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -87px;
}
#container #title a .selectspan1 {
	display: block;
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -87px; 
	padding: 0 15px 0 15px;
}
#container #title .selectli2 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left 0px;
}
#container #title a .selectspan2 {
	display: block; 

	background: url(../images/tab_selected_right_bk2.gif) no-repeat right 0px; 
	padding: 0 15px 0 15px;
}
#container #title .selectli3 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -58px;
}
#container #title a .selectspan3 {
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -58px; 
	padding: 0 15px 0 15px;
}
#container #title .selectli4 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -145px;
}
#container #title a .selectspan4 {
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -145px; 
	padding: 0 15px 0 15px;
}
#container #title .selectli5 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -174px;
}
#container #title a .selectspan5 {
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -174px; 
	padding: 0 15px 0 15px;
}
#container #title .selectli6 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -203px;
}
#container #title a .selectspan6 {
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -203px; 
	padding: 0 15px 0 15px;
}
#container #title .selectli7 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -232px;
}
#container #title a .selectspan7 {
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -232px; 
	padding: 0 15px 0 15px;
}
#container #title .selectli8 {
	text-decoration: none;
	color: #ffffff;
	display: block;
	width: auto;
	background: url(../images/tab_selected_left_bk2.gif) no-repeat left -261px;
}
#container #title a .selectspan8 {
	display: block; 
	background: url(../images/tab_selected_right_bk2.gif) no-repeat right -261px; 
	padding: 0 15px 0 15px;
}
#container #content ul {margin: 10px;}
#container #content li {margin: 5px; }
#container #content li img {margin: 5px;display:block;}
#container #content {
	height: auto;
	padding: 10px;
}
.content1 {
	height: auto;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #3A81C8;
	border-right-color: #3A81C8;
	border-bottom-color: #3A81C8;
	border-left-color: #3A81C8;
	background-color: #DFEBF7;

}
.content2 {
	height: auto;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #ff950b;
	border-right-color: #ff950b;
	border-bottom-color: #ff950b;
	border-left-color: #ff950b;
	background-color: #FFECD2;
}
.content3 {
	height: auto;
	padding: 10px;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #FE74B8;
	border-right-color: #FE74B8;
	border-bottom-color: #FE74B8;
	border-left-color: #FE74B8;
	background-color: #FFECF5;
}
.content4 {
	height: auto;
	padding: 10px;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #00988B;
	border-right-color: #00988B;
	border-bottom-color: #00988B;
	border-left-color: #00988B;
	background-color: #E8FFFD;
}
.content5 {
	height: auto;
	padding: 10px;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #A8BC1F;
	border-right-color: #A8BC1F;
	border-bottom-color: #A8BC1F;
	border-left-color: #A8BC1F;
	background-color: #F7FAE2;
}
.content6 {
	height: auto;
	padding: 10px;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #DA572E;
	border-right-color: #DA572E;
	border-bottom-color: #DA572E;
	border-left-color: #DA572E;
	background-color: #FEDDD3;
}
.content7 {
	height: auto;
	padding: 10px;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #7F5755;
	border-right-color: #7F5755;
	border-bottom-color: #7F5755;
	border-left-color: #7F5755;
	background-color: #E4D0CF;
}
.content8 {
	height: auto;
	padding: 10px;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #cc91ff;
	border-right-color: #cc91ff;
	border-bottom-color: #cc91ff;
	border-left-color: #cc91ff;
	background-color: #ddddff;
}
.content9 {
	height: auto;
	padding: 10px;
	border-top-width: 3px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #e08a00;
	border-right-color: #e08a00;
	border-bottom-color: #e08a00;
	border-left-color: #e08a00;
	background-color: #eeffcc;
}

.hidecontent {display:none;}

</style>
<script language="javascript">
function switchTag(tag,content){
var allnum=<?php echo $webconfig[num];?>;
	for(i=1; i <=allnum; i++)
	{
		if ("tag"+i==tag)
		{
			document.getElementById(tag).getElementsByTagName("a")[0].className="selectli"+i;
			document.getElementById(tag).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="selectspan"+i;
		}else{
			document.getElementById("tag"+i).getElementsByTagName("a")[0].className="";
			document.getElementById("tag"+i).getElementsByTagName("a")[0].getElementsByTagName("span")[0].className="";
		}
		if ("content"+i==content)
		{
			document.getElementById(content).className="";
		}else{
			document.getElementById("content"+i).className="hidecontent";
		}
		document.getElementById("content").className=content;
	}
}
</script>
<script language="javascript">window.onload=function(){var str1 ="?";var links=document.all.tags("A");var total=links.length;for (i=0;i<total;i++){var s =links[i].href.indexOf(str1);if(s>0){links[i].href=links[i].href+'&from=b&mid=<?php echo $_GET[mid];?>';}else{links[i].href=links[i].href+'?from=b&mid=<?php echo $_GET[mid];?>';}}}</script>

</head>
<body>
<form action="infoupdate.php" method="post" enctype="multipart/form-data">
<div id="container">
<div id="title">
    <ul>
	<?php $i=1;
	    foreach($webconfig[lgconfig] as $key =>$lg){
		         if($i==1){
				 $temp1="class=\"selectli".$i."\"";
				 $temp2="class=\"selectspan".$i."\"";
				 }else{
				 $temp1="";
				 $temp2="";
				 }
				
		echo "<li id=\"tag".$i."\"><a href=\"#\" onclick=\"switchTag('tag".$i."','content".$i."');this.blur();\" ".$temp1."><span ".$temp2.">".$lg."</span></a></li>";
		$i++;
		}
	
	?>
    </ul>
  </div>

<div id="content" class="content1">
<?php
$xhgs=1; $zd="abcdefghijklmnopqrstuvwxyz";
//得到语言绑定唯一标识gid

//分类信息
$sortinfo=Dga('infosort',"id='".$_GET[sortid]."'");

//Get table'name;
if($sortinfo[tname]!=''){
$tname=$sortinfo[tname];
}else{
$tname='info';
}
$ttt->assign('tname',$tname);

$_GET['gid']==''&&$_GET['gid']=Mct();

if($_GET['gid']!=''){
$tainfo=Dgs($tname,"gid='".$_GET[gid]."'");
}//gid

foreach($tainfo as $key =>$ttinfo){
//屏蔽没有语言栏错误
if($ttinfo[lg]==''){
$ttinfo[lg]='zh';
}
$info[$ttinfo[lg]]=$ttinfo;
	if($ttinfo[bdid]!=''){
	$_GET[bdid]=$ttinfo[bdid];
	}
	if($ttinfo[bdsortid]!=''){
	$_GET[bdsortid]=$ttinfo[bdsortid];
	}
} 
	    foreach($webconfig[lgconfig] as $key =>$lg){
		         if($xhgs==1){
				 echo " <div id=\"content".$xhgs."\" >";
				 }else{
				 echo "<div id=\"content".$xhgs."\" class=\"hidecontent\">";
				 }
				
		echo "".$lg."[".$key."]=>".$sortinfo[title];
		$lkey=$key;
		//内容开始
		?>  	<fieldset><legend>><img src='../img/page_favourites.gif' border='0'  style='display:left;vertical-align:middle;' ait='导航'> 导航〖NAV〗</legend><div align="left">
		 <a href="infolist.php?op=list&sortid=<?php echo $_GET[sortid]."&bdsortid=".$_GET[bdsortid]."&bdid=".$_GET[bdid];?>" title="浏览本分类"><img src="../img/interface_browser.gif" border='0'/></a> <?php
		 if($_GET[bdsortid]!=''){
		 ?>
		 <a href="infolist.php?op=list&sortid=<?php echo $_GET[bdsortid];?>" title="浏览父分类"><img src="../img/list.gif" border='0'/></a> <?php }?>
</div></fieldset>
      <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#B1CDE6"  style="border-collapse: collapse">
		<?php
		// 标题
		if($sortinfo[dtitle]=='1'){
		?>
			<tr> 
            <td height="30" width="19%" align="right" class="title">标题[title]：</td>
            <td width="81%" height="30" align="left" class=con>  
              <input name="<?php echo $lkey;?>[title]" type="text" id="<?php echo $lkey;?>[title]" value="<?php echo $info[$lkey][title];?>" size="60" maxlength="200">
            <font color="#FF0000">*</font> </td>
          </tr>
        <?php
        }
		?>
		<?php
		// 图片
		if($sortinfo[picname]!=''){
		?>
            <tr> 
            <td height="30" width="19%" align="right" class="title"><?php echo $sortinfo[picname];?>：</td>
            <td height="30" align="left" class=con> 
            <input type="file" name="<?php echo $lkey;?>[pic]">
                        <span class="STYLE2">              (只有 JPG  GIF PNG 格式才能生成缩略图)       </span>
                        <?php 
							
							$showp=array('jpg','peg','gif','png','bmp');
						
						if($info[$lkey][pic]!='')	{
							if(in_array(substr($info[$lkey][pic],-3),$showp)){
								echo "<img width=\"100\" src=\"/uploads/pic/".$info[$lkey][pic]."\">";
							}
							else{
								echo "<a  href=\"/uploads/pic/".$info[$lkey][pic]."\">下载【DOWN】</a>";
							}
						  }
						  ?>
                            </td>
                      </tr>
         <?php
        }//上传1
		?>
        
        <?php
		// 文件
		if($sortinfo[filename]!=''){
		?>
            <tr> 
            	<td height="30" width="19%" align="right" class="title"> <?php echo $sortinfo[filename];?>：</td>
            	 <td height="30" align="left" class="con"><input type="file" name="<?php echo $lkey;?>[files]">
                 		  <?php 
						$showp=array('jpg','gif','png','bmp');
						if($info[$lkey][files]!='')	
						  {
							if(in_array(substr($info[$lkey][files],-3),$showp))
							{
								echo "<span style=color:#F00;>已上传</span>";
							}
							
						  }
						 else
						 {
							echo "<span style=color:#F00;>请您先上传</span>";
						 }
						  ?>
                 </td>
            </tr>
         <?php
        }//上传2
		?>
		<?php
		// text
		for($ii=0;$ii<26;$ii++)
		{ 
			$uu=substr($zd,$ii,1);
			$sortinfo1[$uu]=unserialize($sortinfo[$uu]);
			foreach($sortinfo1[$uu] as $key =>$value)
			{
			$sortinfo1[$uu][$key]=stripslashes($value);
			}
			if($sortinfo1[$uu][title]!='')
			{
			
			?>
            
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1[$uu][title]; ?>：</td>
            
       
            <td width="81%" height="30" align="left" class=con>  
              <?php echo "<input name=\"".$lkey."[".$uu."]\" type=\"text\" id=\"".$lkey."[".$uu."]\"  ".stripslashes($sortinfo1[$uu][style])."  ".stripslashes($sortinfo1[$uu][js])."   ".stripslashes($sortinfo1[$uu][chajian])."  value=\"".$info[$lkey][$uu]."\" />"; ?>
			  </td>
       
          </tr>
			<?php
			}
		}
		?>
		<?php
		// radio
		for($ii=0;$ii<13;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['a'.$uu]=unserialize($sortinfo['a'.$uu]);
			foreach($sortinfo1['a'.$uu] as $key =>$value)
			{
			$sortinfo1['a'.$uu][$key]=stripslashes($value);
			}
						if($sortinfo1['a'.$uu][title]!='')
			{
			$yarray=array();
			$xarray=array();
			
			$temp=explode('#',$sortinfo1['a'.$uu][value]);
					foreach($temp as $value)
					{
					    $ttemp=explode('-',$value);
						$yarray[]=$ttemp[0];
						$xarray[$ttemp[0]]=$ttemp[1];
					}
			if($info[$lkey]['a'.$uu]!='')
				{
				$sortinfo1['a'.$uu][dvalue]=$info[$lkey]['a'.$uu];
				}
	$form=Bcr($lkey.'[a'.$uu."]",$yarray,$xarray,$sortinfo1['a'.$uu][dvalue]);
			?>
            
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['a'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>
        
		<?php
		// checkbox
		for($ii=13;$ii<26;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['a'.$uu]=unserialize($sortinfo['a'.$uu]);
			foreach($sortinfo1['a'.$uu] as $key =>$value)
			{
			$sortinfo1['a'.$uu][$key]=stripslashes($value);
			}
						if($sortinfo1['a'.$uu][title]!='')
			{
			$yarray=array();
			$xarray=array();
			
			$temp=explode('#',$sortinfo1['a'.$uu][value]);
					foreach($temp as $value)
					{
					    $ttemp=explode('-',$value);
						$yarray[]=$ttemp[0];
						$xarray[$ttemp[0]]=$ttemp[1];
					}
			if($info[$lkey]['a'.$uu]!='')
				{
				$sortinfo1['a'.$uu][dvalue]=$info[$lkey]['a'.$uu];
				}
	$sortinfo1['a'.$uu][dvalue]=explode(',',$sortinfo1['a'.$uu][dvalue]);
	$form=Bcc($lkey.'[a'.$uu."][]",$yarray,$xarray,$sortinfo1['a'.$uu][dvalue]);
			?>
            
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['a'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>
        
		<?php
		// select
		for($ii=0;$ii<10;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['b'.$uu]=unserialize($sortinfo['b'.$uu]);
			foreach($sortinfo1['b'.$uu] as $key =>$value)
			{
			$sortinfo1['b'.$uu][$key]=stripslashes($value);
			}
						if($sortinfo1['b'.$uu][title]!='')
			{
			$yarray=array();
			$xarray=array();
			
			$temp=explode('#',$sortinfo1['b'.$uu][value]);
					foreach($temp as $value)
					{
					    $ttemp=explode('-',$value);
						$yarray[]=$ttemp[0];
						$xarray[]=$ttemp[1];
					}
			if($info[$lkey]['b'.$uu]!='')
				{
				$sortinfo1['b'.$uu][dvalue]=$info[$lkey]['b'.$uu];
				}

	$form=Bcs($lkey.'[b'.$uu."]",$yarray,$xarray,$sortinfo1['b'.$uu][dvalue]);
			?>
            
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['b'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>
        
        
		<?php
		// ubb
		for($ii=10;$ii<26;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['b'.$uu]=unserialize($sortinfo['b'.$uu]);
			foreach($sortinfo1['b'.$uu] as $key =>$value)
			{
			$sortinfo1['b'.$uu][$key]=stripslashes($value);
			}
			if($sortinfo1['b'.$uu][title]!=''){
	ob_start();
	Jubb($lkey."[b".$uu."]",stripslashes($info[$lkey]['b'.$uu]),'../..',0,1);
	$form = ob_get_contents();
	ob_end_clean();
			?>
            
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['b'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>



		<?php
		// file_text
		for($ii=23;$ii<24;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['c'.$uu]=unserialize($sortinfo['c'.$uu]);
			foreach($sortinfo1['c'.$uu] as $key =>$value){
			$sortinfo1['c'.$uu][$key]=stripslashes($value);
			}
			
			if($sortinfo1['c'.$uu][title]!=''){
				$finfo=file($sortinfo1['c'.$uu]['lujing']); 
				$finfo=implode('',$finfo);
				$form="  <textarea name=\"".$lkey."[c".$uu."]\" cols=\"80\" rows=\"8\" id=\"".$lkey."[c".$uu."]\">".$finfo."</textarea>";
?>
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['c'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>
        
		<?php
		// file_lang
		for($ii=24;$ii<25;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['c'.$uu]=unserialize($sortinfo['c'.$uu]);
			foreach($sortinfo1['c'.$uu] as $key =>$value){
			$sortinfo1['c'.$uu][$key]=stripslashes($value);
			}
			
			if($sortinfo1['c'.$uu][title]!=''){
				$finfo=file($sortinfo1['c'.$uu]['lujing'].$lkey.".php"); 
				$finfo=implode('',$finfo);
				$form="  <textarea name=\"".$lkey."[c".$uu."]\" cols=\"80\" rows=\"120\" id=\"".$lkey."[c".$uu."]\">".$finfo."</textarea>";
?>
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['c'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>
        
		<?php
		// file_ubb
		for($ii=25;$ii<26;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['c'.$uu]=unserialize($sortinfo['c'.$uu]);
			foreach($sortinfo1['c'.$uu] as $key =>$value){
			$sortinfo1['c'.$uu][$key]=stripslashes($value);
			}
			
			if($sortinfo1['c'.$uu][title]!=''){
			
				$finfo=file($sortinfo1['c'.$uu]['lujing']); 
				$finfo=implode('',$finfo);
				ob_start();
				Jubb($lkey."[c".$uu."]",$finfo,'../..',0,1);
				$form = ob_get_contents();
				ob_end_clean();
?>
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['c'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>
        
		<?php
		// bd_sort
		for($ii=0;$ii<6;$ii++){
		 
			$uu=substr($zd,$ii,1);
			$sortinfo1['d'.$uu]=unserialize($sortinfo['d'.$uu]);
			foreach($sortinfo1['d'.$uu] as $key =>$value){
			$sortinfo1['d'.$uu][$key]=stripslashes($value);
			}
			
			
			if($sortinfo1['d'.$uu][title]!=''){
				$drop_down_info='';
				$info[$lkey]['d'.$uu]=explode(',',$info[$lkey]['d'.$uu]);
				drop_down($sortinfo1['d'.$uu][sortid],0,$info[$lkey]['d'.$uu],'sort',$lkey,"-1","全部分类");
				$dxz='';
				if($sortinfo1['d'.$uu][dx]==1){
				$dxz=" name=\"".$lkey."[d".$uu."][]\"  multiple=\"multiple\"  size='8'";
				}
				else{
				$dxz=" name=\"".$lkey."[d".$uu."]\"  ";
				}
	$form= "<select ".$dxz."  id=\"".$lkey."[d".$uu."]\">".$drop_down_info."
	  </select>";?>
            <tr>
            <td height="30" width="19%" align="right" class="title"><?php echo  $sortinfo1['d'.$uu][title]; ?>：</td>
            <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
			<?php
			}
		}
		?>
        
        <?php
		/*// default ubb
		if($sortinfo[sh]!=''){
					if($info[$lkey]['shno']==''&&$info[$lkey][shstatus]==0){
					$finfo=$sortinfo['sh'];
					}else{
					$finfo=$info[$lkey]['shno'];
					}
				$form="  <textarea name=\"".$lkey."[shno]\" cols=\"80\" rows=\"2\" id=\"shno\">".$finfo."</textarea>";
		?>	<tr> 
            <td colspan="2">审核人用记ID列表&nbsp;<?php echo $sortinfo['sh'];?>
			<input name="<?php echo $lkey;?>[shstatus]" type="hidden"  value="0"   />   <input name="<?php echo $lkey;?>[shinfo]" type="hidden"  value=""   />    </td>
          </tr>
          <tr> 
            <td colspan="2">				
			<?php !$info[$lkey][shstatus]&&$info[$lkey][shstatus]=0;
					$sts=array('0'=>'审核中。。','1'=>'未通过','2'=>'通过');
					echo "现在状态：".$sts[$info[$lkey][shstatus]]."<BR>";
					echo "未审核人：".$info[$lkey][shno]."<BR>";
					echo "正在审核人：".$info[$lkey][shuser]."<BR>";
					echo "审核历史：".$info[$lkey]['shinfo']."<BR>";?>			  </td>
          </tr>
			<tr> 
            <td height="30" width="19%" align="right" class="title">设定审核人：</td>
           <td width="81%" height="30" align="left" class=con>  
              <?php echo $form; ?>
			  </td>
          </tr>
        <?php
        }
		*/?>

		<?php
		// default ubb
		if($sortinfo[showubb]=='1'){
		?>
			<tr> 
            <td  class=con colspan="2">  
				<?php
				
					Jubb($lkey."[content]",stripslashes($info[$lkey][content]),'../..',0,1);

				?>

          </tr>
        <?php
        }
		?>
        
		</table>
		<input name="<?php echo $lkey;?>[id]" type="hidden" value="<?php echo $info[$lkey][id];?>"  />  
		<?php
		$xhgs++;
		echo "</div>";
		}
		 /*if(isset($_GET[bdsortid])==false){
		 	$_GET[bdsortid]=$_GET[sortid];
			}
		 if(isset($_GET[bdid])==false){
		 	$_GET[bdid]=$_GET[gid];
			}
			*/
	?>
        </div>
    <div  align="center"><BR />
     <input type="submit" value="提交" /></div><br />
     <input name="op" type="hidden"  value="<?php echo $_GET[op];?>"   />  
     <input name="gid" type="hidden"  value="<?php echo $_GET[gid];?>"   />  
     <input name="mid" type="hidden"  value="<?php echo $_GET[mid];?>"   />  
     <input name="from" type="hidden"  value="b"   />  
     <input name="bdid" type="hidden"  value="<?php echo $_GET[bdid];?>"   />  
     <input name="sortid" type="hidden"  value="<?php echo $_GET[sortid];?>"   />  
     <input name="tname" type="hidden"  value="<?php echo $tname;?>"   />  
     <input name="bdsortid" type="hidden"  value="<?php echo $_GET[bdsortid];?>"   />  
	       
</form>

</body>
</html>
